﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Empires.BLL.Core.IService;
using Empires.BLL.Core.Implement;
using Empires.CRL.DataContract;

namespace Empires.PL.ServiceClient
{
    public static class CompanyBaseServiceClient
    {
        public static int GetCompanyId(string copName)
        {
            ICompanyBaseService service = new CompanyBaseService();
            return service.GetCompanyId(copName);
        }
        public static List<DefaultDataPack> GetAuthenticationInfo(string copname)
        {
            ICompanyBaseService service = new CompanyBaseService();
            return service.GetAuthenticationInfo(copname);
        }
        public static string GetCompanyName(int id)
        {
            ICompanyBaseService service = new CompanyBaseService();
            return service.GetCompanyName(id);
        }
        public static string GetMasterName(string copname)
        {
            ICompanyBaseService service = new CompanyBaseService();
            return service.GetMasterName(copname);
        }
        public static string GetCompanyTempleteBasePath(int id)
        {
            ICompanyBaseService service = new CompanyBaseService();
            return service.GetCompanyTempleteBasePath(id);
        }
        /// <summary>
        /// 获得公司应用模板的基础路径
        /// </summary>
        /// <param name="copName">公司唯一标识名</param>
        /// <returns></returns>
        public static string GetCompanyTempleteBasePath(string copName)
        {
            ICompanyBaseService service = new CompanyBaseService();
            return service.GetCompanyTempleteBasePath(copName);
        }
        //public static List<DefaultDataPack> GetCompanyMainInfo(string copname, int take)
        //{
        //    ICompanyBaseService service = new CompanyBaseService();
        //    return service.GetCompanyMainInfo(copname, take);
        //}
        public static List<DefaultDataPack> GetCompanyMainInfoItem(string copname, int bid)
        {
            ICompanyBaseService service = new CompanyBaseService();
            return service.GetCompanyMainInfoItem(copname, bid);
        }
    }
}
